#ifndef __CHANNEL_HPP__
#define __CHANNEL_HPP__

#include <iostream>
#include <string>
#include <unistd.h>

struct Channel
{
public:
    Channel(int wfd, pid_t pid) : _pid(pid), _wfd(wfd)
    {
        _name = "channel " + std::to_string(wfd) + " " + std::to_string(pid);
    }

    std::string Name()
    {
        return _name;
    }
    pid_t Id()
    {
        return _pid;
    }
    int wFd()
    {
        return _wfd;
    }
    ~Channel()
    {
    }

private:
    std::string _name;
    pid_t _pid;
    int _wfd;
};

#endif
